package com.study.s10.observer;

import java.util.Observable;
import java.util.Observer;

import com.study.s10.observer.model.Article;

public class BlogObserver implements Observer {

	public void update(Observable o, Object arg) {
		
		Article article = (Article) arg;
		System.out.println("========监听者========");
		System.out.println("你关注的博主发表了新文章");
		System.out.println("标题：" + article.getTitle() + "，内容为：" + article.getContent());
	}

}
